package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author GaoYiJie
 * @Description
 * @Create 2025/3/6 10:47
 * @Version 1.0
 */
@Data
@TableName("t_bmi")
public class Bmi implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Double weight;
    private Double high;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private Date createTime;
    private Integer userId;

    @TableField(exist = false)
    private Double bmi;

}
